﻿using System;
using System.Collections.Generic;
using System.Text;

namespace com.lover.astd.common.logic
{
    public class ServiceFactory
    {
        private static HeroMgr _heroMgr = null;
        public static HeroMgr getHeroManager() { if (_heroMgr == null) _heroMgr = new HeroMgr(); return _heroMgr; }

        private static CampaignMgr _campaignMgr = null;
        public static CampaignMgr getCampaignManager() { if (_campaignMgr == null) _campaignMgr = new CampaignMgr(); return _campaignMgr; }

        private static EquipMgr _equipMgr = null;
        public static EquipMgr getEquipManager() { if (_equipMgr == null) _equipMgr = new EquipMgr(); return _equipMgr; }

        private static TroopMgr _troopMgr = null;
        public static TroopMgr getTroopManager() { if (_troopMgr == null) _troopMgr = new TroopMgr(); return _troopMgr; }

        private static BuildingMgr _buildMgr = null;
        public static BuildingMgr getBuildingManager() { if (_buildMgr == null) _buildMgr = new BuildingMgr(); return _buildMgr; }

        private static ActivityMgr _activityMgr = null;
        public static ActivityMgr getActivityManager() { if (_activityMgr == null) _activityMgr = new ActivityMgr(); return _activityMgr; }

        private static BattleMgr _battleMgr = null;
        public static BattleMgr getBattleManager() { if (_battleMgr == null) _battleMgr = new BattleMgr(); return _battleMgr; }

        private static MiscMgr _miscMgr = null;
        public static MiscMgr getMiscManager() { if (_miscMgr == null) _miscMgr = new MiscMgr(); return _miscMgr; }

    }
}
